package com.son.factory;

import com.son.controller.InterStudentController;
import com.son.controller.InterTeacherController;
import com.son.controller.StudentControllerImpl;
import com.son.controller.TeacherControllerImpl;
import com.son.dao.InterStudentDao;
import com.son.dao.InterTeacherDao;
import com.son.dao.StudentDaoImpl;
import com.son.dao.TeacherDaoImpl;
import com.son.service.InterStudenService;
import com.son.service.InterTeacherService;
import com.son.service.StudentServiceImpl;
import com.son.service.TeacherServiceImpl;

public class TeacherFactory {
    //生产 TeacherController
    public static InterTeacherController getTeacherController(){
        return  new TeacherControllerImpl();
    }
    //生产 TeacherService
    public static InterTeacherService getTeacherService(){
        return new TeacherServiceImpl();
    }
    //生产 TeacherDao
    public static InterTeacherDao getTeacherDao(){
        return new TeacherDaoImpl();
    }
}
